﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;
using CDSBDemandControlService;
using System.Threading;

namespace CDSBDemandControl.View
{
    public partial class Form1 : Form
    {
        ClassePrincipal cp = new ClassePrincipal();

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Thread thr = new Thread(new ThreadStart(cp.Run));
            thr.Start();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            cp.Dispose(true);
        }
    }
}
